<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%--<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>--%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path ;

%>
<script>
	var basePath = '<%=basePath%>';
</script>
<!--框架start-->
<script src="<%=basePath %>/resources/jquery/jquery-1.9.0.js"></script>
<link href="<%=basePath %>/resources/ui/css/bootstrap.min.css" rel="stylesheet" />
<link href="<%=basePath %>/resources/ui/css/bootstrap-responsive.min.css" rel="stylesheet" />
<link rel="stylesheet" href="<%=basePath %>/resources/ui/css/font-awesome.min.css" />

<!--[if IE 7]>
<link rel="stylesheet" href="<%=basePath %>/resources/ui/css/font-awesome-ie7.min.css" />
<![endif]-->

<!-- page specific plugin styles -->
<!-- fonts -->

<link rel="stylesheet" href="<%=basePath %>/resources/ui/css/jundu-fonts.css" />

<!-- ace styles -->

<link rel="stylesheet" href="<%=basePath %>/resources/ui/css/jundu.min.css" />
<link rel="stylesheet" href="<%=basePath %>/resources/ui/css/jundu-responsive.min.css" />
<link rel="stylesheet" href="<%=basePath %>/resources/ui/css/jundu-skins.min.css" />
<link rel="stylesheet" href="<%=basePath %>/resources/ui/css/xz-web.css" />

<!--[if lte IE 8]>
<link rel="stylesheet" href="<%=basePath %>/resources/ui/css/jundu-ie.min.css" />
<![endif]-->

<link rel="stylesheet" href="<%=basePath %>/resources/easyui/themes/metro/tabs.css" />
<!-- inline styles related to this page -->

<!-- ace settings handler -->

<script src="<%=basePath %>/resources/ui/js/jundu-extra.min.js"></script>
<link rel="stylesheet" href="<%=basePath %>/resources/ui/css/jquery.gritter.css" />

<link rel="stylesheet" href="<%=basePath %>/resources/easyui/styles/zxy-web.css" />
<!--框架start-->

<!--YS 脚本库start-->
<script type="text/javascript" src="/resources/ui/js/jqGrid/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="<%=basePath %>/resources/js/common/myutil.js"></script>
<script type="text/javascript" src="<%=basePath %>/resources/js/common/webctrl.js"></script>
<!--YS 脚本库end-->

<!--分页start-->
<script type="text/javascript" src="<%=basePath %>/component/jquery.pagination/jquery.pagination.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="<%=basePath %>/component/jquery.pagination/pagination.css" />
<!--分页end-->

<%--<!--修正IE6支持透明png图片start-->
<script type="text/javascript" src="${basePath}/resources/js/supersleight.js"></script>
<!--修正IE6支持透明png图片end-->--%>

<script type="text/javascript" src="<%=basePath %>/resources/easyui/js/junduMVC.js"></script>
<script type="text/javascript" src="/clientui/js/framework-resource.js"></script>
<script type="text/javascript">
	var basePath = '<%=basePath%>';
	function initmain(){
		var menuid = '';
		if(parent.document.getElementById('menuid_now')) menuid = parent.document.getElementById('menuid_now').value;
		else menuid = parent.parent.document.getElementById('menuid_now').value;
		
		//加载页面按钮
		$.get(basePath+'/s/ajax/getButtonOnList?menuid='+menuid,function(data){
			if(data.jsonstr!=''){
				$('#userRoleMenuButton').html(data.jsonstr);
				$('#userRoleMenuButton').find('a').css('margin-right','3px');
			}else{
				$('#userRoleMenuButton').css('display','none');
			}
			
		});
		
		//设置字体大小
		to_font_size();
	}
	function to_font_size(size){
		if(size==null) size=12;
		//alert(size);
		$('div').css('font-size',size+'px');
		$('td').css('font-size',size+'px');
		$('th').css('font-size',size+'px');
	}
	
	
</script>
<script type="text/javascript">
	var url = window.location.href;
	$(function(){
		IFrame();
	});
	IFrame();
	$(window).resize(function(){
		IFrame();
	});
	function IFrame(){
		url = url.substring(url.lastIndexOf("/"));
		$(window.parent.document).find("iframe").each(function (i) {
			var iframeUrl = $(this).attr("src");
			if ("" != iframeUrl&& undefined!=iframeUrl) {
				iframeUrl = iframeUrl.substring(iframeUrl.lastIndexOf("/"));
			}
			if (iframeUrl.trim() == url.trim()) {
				var clientHeight = parent.document.documentElement.clientHeight;
				$(this).css({height:clientHeight-151});
				$(this).attr("scrolling","auto");
			}
		});
	}
</script>
